package com.cxxx.guns.modular.backend.dao;

import com.cxxx.guns.modular.backend.model.Video;
import com.baomidou.mybatisplus.mapper.BaseMapper;

import java.util.Date;
import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author yyi
 * @since 2018-09-18
 */
public interface VideoMapper extends BaseMapper<Video> {
    /*根据时间来查询视频的上条下条*/
    public Video nextVideo(Date date);
    public Video previousVideo(Date date);
    //按照时间排序查出前七条记录
    public List<Video> selectVideo();

}
